﻿@using QDT.Core
@model QDT.Core.Projects.RepaymentScheme
    
 <table class="table table-responsive pvepi-repayment-plan touch-hook-repayment">
    <thead>
        <tr>
            <th>预期还款时间</th>
            <th>类型</th>
            <th>还款金额(元)</th>
            <th>状态</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var m in Model.Stages)
        {
            <tr>
                <td>@m.Time.ToString("yyyy-MM-dd")</td>
                <td>
                    @switch (m.RepayType)
                    {
                        case 1:
                            <span>利息</span>
                            break;
                        case 2:
                            <span>本金</span>
                            break;
                        case 3:
                            <span>本金和利息</span>
                            break;
                    }
                </td>
                <td>@m.Ammount.ToMoney()</td>
                <td>
                    @if (m.IsRepay)
                    {
                        <span>成功</span>
                    }
                    else
                    {
                        <span>待还</span>
                    }
                                
                </td>
            </tr>
        }
    </tbody>
</table>